package com.ffcs.ffxtc.domain.vo;

import com.fasterxml.jackson.annotation.JsonRawValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ffcs.utils.CustomDataDeserializer;
import com.ffcs.utils.base.Request;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author zhangzhengxing
 */
@Data
public class CategoryVO extends Request {

    @Schema(description = "前端输出json后端转字符串（json格式）", format = "json")
    @JsonDeserialize(using = CustomDataDeserializer.class)
    @JsonRawValue
    @NotNull(message = "当前参数不能是空")
    private String json;

    @NotNull(message = "名字不能是空")
    private String name;
}
